particle sonic_boom ~ ~ ~

execute as @n[distance=..2,tag=spotted] at @s run return run function ew:elder_warden/sonic_damage
execute positioned ^ ^ ^1 run function ew:elder_warden/sonic_loop